package com.yx.system.service.impl;

import com.yx.system.dao.TdReadPayLogMapper;
import com.yx.system.entity.TdReadPayLog;
import com.yx.system.service.TdReadPayLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service("tdReadPayLogService")
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class TdReadPayLogServiceImpl implements TdReadPayLogService {

    @Autowired
    private TdReadPayLogMapper tdReadPayLogMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tdReadPayLogMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TdReadPayLog record) {
        return tdReadPayLogMapper.insert(record);
    }

    @Override
    public int insertSelective(TdReadPayLog record) {
        return tdReadPayLogMapper.insertSelective(record);
    }

    @Override
    public TdReadPayLog selectByPrimaryKey(Integer id) {
        return tdReadPayLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TdReadPayLog record) {
        return tdReadPayLogMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TdReadPayLog record) {
        return tdReadPayLogMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<TdReadPayLog> queryList(Map<String, Object> map) {
        return tdReadPayLogMapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return tdReadPayLogMapper.queryTotal(map);
    }
}
